Copy File
AutomatR.GoogleDrive.Activities.CopyFile
The "Copy File" activity in AutomatR is part of the Google Drive activities package, designed for seamless integration with Google Drive. This custom activity allows you to copy a file to a specified destination folder on the user's Google Drive account. This facilitates efficient file management and copying within Google Drive.
Properties
Name | Description |
---|---|
Input | |
Source File Path | Specifies the file name that needs to be copied to the destination folder (e.g., "Root\CopyFileFrom\1.xlsx"). String variables containing the source file path. |
Destination Folder | Specifies the destination folder on Google Drive where the file should be copied (e.g., "Root\DestinationFolder"). String variables containing the destination folder path. |
Misc | |
Display Name | The display name of the activity. A display name is automatically generated when you indicate a target. |
Optional | |
Delay | Specifies the amount of time (in seconds) to wait before executing the "Copy File" activity. This can be useful for handling synchronization issues. Integer variables containing the delay duration. Ex.: If the amount of time is 1000 milliseconds or 1 sec, i.e., 1. |
Output | |
Result | Outputs true or false based on the success of the copy file operation. Boolean variables to store the operation result. |
How to use:
- Drag and drop the "Copy File" activity onto the workflow.
- Configure the properties by specifying the source file path, destination folder, and optionally set a delay.
- Place the "Copy File" activity within a "Google Drive Scope" to ensure proper authentication and access to the Google Drive service.
- Execute the workflow to copy the specified file to the designated folder on Google Drive.
Example: Consider an example where the "Copy File" activity is used to copy a file named "document.xlsx" from the "Root\CopyFileFrom" folder to the "Root\DestinationFolder" on Google Drive:
Copy File:
Delay: 1
Source File Path: "Root\\CopyFileFrom\\document.xlsx"
Destination Folder: "Root\\DestinationFolder"
Result: isCopySuccessful
In this example, the activity copies the "document.xlsx" file from the source folder to the destination folder on Google Drive. The result of the operation (success or failure) is stored in the Boolean variable "isCopySuccessful" for further handling in the workflow.